﻿using SqlSugar;
using Zhp.Entity.SysEnum;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Common
{
    [SugarTable("Sys_File")]
    public class SysFile : BaseEntity<SysFile, long>
    {
        [SugarColumn(IsNullable = true, ColumnDescription = "模块")]
        public FileEnum Module { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "外键")]
        public long MainId { get; set; }

        [SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "文件扩展名")]
        public string FileType { get; set; }

        [SugarColumn(Length = 50, IsNullable = true, ColumnDescription = "文件类型")]
        public string ContentType { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "文件大小")]
        public long FileSize { get; set; }

        [SugarColumn(Length = 500, IsNullable = true, ColumnDescription = "文件路径")]
        public string FilePath { get; set; }
    }
}
